package com.tsign.module.lib.core.base;

/**
 * @author amoslv
 */
public interface BaseContract {

    interface BaseView {
        /**
         * 显示自定义message
         *
         * @param message
         */
        void showToastMessage(String message);
    }

    interface BasePresenter<T> {
        /**
         * 绑定
         *
         * @param view view
         */
        void attachView(T view);

        /**
         * 解绑
         */
        void detachView();

        /**
         * 判断是否解绑
         *
         * @return
         */
        boolean isViewAttached();
    }

    interface BaseModel {
        /**
         * 设置BasePresenter
         *
         * @param basePresenter
         */
        void setPresenter(BasePresenter basePresenter);
    }

}
